import request from '@/plugin/axios'

export function fetchList (data) {
  return request({
    url: '/microprogram/shopPersonnel',
    method: 'get',
    params: data
  })
}

export function insert (data) {
  return request({
    url: '/supplier/insert',
    method: 'post',
    data
  })
}

export function update (data) {
  return request({
    url: '/supplier/update',
    method: 'put',
    data
  })
}
 
export function deleteById (data) {
  return request({
    url: '/supplier/del/' + data,
    method: 'delete',
  })
}

export function updateIntegral (data) {
  return request({
    url: '/integral/recharge',
    method: 'post',
    data
  })
}

export function updateMemberLevel (data) {
  return request({
    url: '/microprogram/setMember',
    method: 'post',
    data
  })
}
